* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

/* 输入方式容器样式 */
.input-methods-container {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

/* 单个输入区域样式调整 */
.input-methods-container .input-section {
    flex: 1;
    margin-bottom: 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .input-methods-container {
        flex-direction: column;
    }
    
    .input-methods-container .input-section {
        margin-bottom: 25px;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.input-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #34495e;
}

.file-upload {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.file-upload input {
    display: none;
}

.file-upload-label {
    display: block;
    cursor: pointer;
    font-size: 16px;
    color: #3498db;
}

.file-info {
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.text-input {
    width: 100%;
    min-height: 150px; /* 减小输入框高度 */
    max-height: 250px; /* 添加最大高度限制 */
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #3498db;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.download-section {
    display: none; /* 隐藏原有的下载区域，因为我们现在使用固定在底部的下载条 */
}

/* 固定在底部的下载条样式 */
.download-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #27ae60;
    color: white;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.download-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.download-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.download-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* 增大的下载按钮 */
.btn-large {
    padding: 14px 32px;
    font-size: 18px;
    min-width: 180px;
}

/* 为固定下载条添加底部空间，避免内容被遮挡 */
.container {
    margin-bottom: 100px;
}

.status {
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.instructions {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.instructions h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 5px;
}